<div class="pageContent">
	
	<form method="post" action="<?php echo Yii::app()->createUrl('article/edit');?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="id" value="<?php echo $data['article_id'];?>" />
		<div class="pageFormContent" layoutH="58">

			<div class="unit">
				<label>文章名称：</label>
				<input type="text" name="dataForm[name]" maxlength="30" class="required" errormsg="请输入文章名称" value="<?php echo $data['name'];?>"/>
			</div>
			<div class="unit">
				<label>排序：</label>
				<input type="text" name="dataForm[sort]" class="digits required" errormsg="请输入排序(整数)" value="<?php echo $data['sort'];?>"/>
				<span class="info">&nbsp;&nbsp;数字越大越靠前</span>
			</div>
			<div class="unit">
				<label>是否显示：</label>
				<label><input type="radio" name="dataForm[is_show]" value="0" <?php if($data['is_show'] == 0){?>checked<?php }?>/>显示</label>
				<label><input type="radio" name="dataForm[is_show]" value="1" <?php if($data['is_show'] == 1){?>checked<?php }?>/>隐藏</label>
			</div>
			<div class="unit">
				<label>文章内容：</label>
				<textarea class="editor" name="dataForm[content]" class="required" rows="40" cols="100"
							upLinkUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upLinkExt="zip,rar,txt" 
							upImgUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upImgExt="jpg,jpeg,gif,png" 
							upFlashUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upFlashExt="swf"
							upMediaUrl="<?php echo Yii::app()->createUrl("UploadFile/EditorUpload");?>" upMediaExt:"avi"><?php echo $data['content'];?></textarea>				
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>